﻿namespace VaccineHost.Extend
{
    /// <summary>
    /// 扩展中间件
    /// </summary>
    public static class PreOptionsRequestMiddlewareExtensions
    {
        /// <summary>
        /// 注册中间件
        /// </summary>
        /// <param name="app"></param>
        /// <returns></returns>
        public static IApplicationBuilder UsePreOptionsRequest(this IApplicationBuilder app)
        {
            return app.UseMiddleware<PreOptionRequestMiddleware>();
        }
    }
}
